//
//  WeakTimer.h
//  Demo
//
//  Created by Tiancheng on 16/9/21.
//  Copyright © 2016年 why. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface WeakTimer : NSObject
typedef void (^TimerHandler)(id userInfo);

+ (NSTimer *) scheduledTimerWithTimeInterval:(NSTimeInterval)interval
                                      target:(id)aTarget
                                    selector:(SEL)aSelector
                                    userInfo:(id)userInfo
                                     repeats:(BOOL)repeats;

+ (NSTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)interval
                                      block:(TimerHandler)block
                                   userInfo:(id)userInfo
                                    repeats:(BOOL)repeats;
@end
